package foodmaterial.service.impl;

import foodmaterial.dao.StatisticsDao;
import foodmaterial.dto.StatisticsConsumeDto;
import foodmaterial.dto.StatisticsPurchaseDto;
import foodmaterial.service.StatisticsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class StatisticsServiceImpl implements StatisticsService {

    @Autowired
    private StatisticsDao dao ;

    @Override
    public List<Map<String, Object>> querySupplyFoodMaterialByDay(StatisticsConsumeDto dto) {
        return dao.selectSupplyFoodMaterialByDay(dto);
    }

    @Override
    public List<Map<String, Object>> querySupplyFoodMaterialByMonth(StatisticsConsumeDto dto) {
        return dao.selectSupplyFoodMaterialByMonth(dto);
    }

    @Override
    public List<Map<String, Object>> querySupplyRecipeByDay(StatisticsConsumeDto dto) {
        return dao.selectSupplyRecipeByDay(dto);
    }

    @Override
    public List<Map<String, Object>> querySupplyRecipeByMonth(StatisticsConsumeDto dto) {
        return dao.selectSupplyRecipeByMonth(dto);
    }

    @Override
    public List<Map<String, Object>> querySupplyFoodMaterialByTop(StatisticsConsumeDto dto) {
        return dao.selectSupplyFoodMaterialByTop(dto);
    }

    @Override
    public List<Map<String, Object>> querySupplyRecipeByTop(StatisticsConsumeDto dto) {
        return dao.selectSupplyRecipeByTop(dto);
    }

    @Override
    public List<Map<String, Object>> querySaleByDay(StatisticsConsumeDto dto) {
        return dao.selectSaleByDay(dto);
    }

    @Override
    public List<Map<String, Object>> querySaleByMonth(StatisticsConsumeDto dto) {
        return dao.selectSaleByMonth(dto);
    }

    @Override
    public List<Map<String, Object>> queryRecipeSaleByDay(StatisticsConsumeDto dto) {
        return dao.selectRecipeSaleByDay(dto);
    }

    @Override
    public List<Map<String, Object>> queryRecipeSaleByMonth(StatisticsConsumeDto dto) {
        return dao.selectRecipeSaleByMonth(dto);
    }

    @Override
    public List<Map<String, Object>> querySaleByTop(StatisticsConsumeDto dto) {
        return dao.selectSaleByTop(dto);
    }

    @Override
    public List<Map<String, Object>> queryRecipeSaleByTop(StatisticsConsumeDto dto) {
        return dao.selectRecipeSaleByTop(dto);
    }

    @Override
    public List<Map<String, Object>> queryPurchaseFoodMaterialByDay(StatisticsPurchaseDto dto) {
        return dao.selectPurchaseFoodMaterialByDay(dto);
    }

    @Override
    public List<Map<String, Object>> queryPurchaseFoodMaterialByMonth(StatisticsPurchaseDto dto) {
        return dao.selectPurchaseFoodMaterialByMonth(dto);
    }

    @Override
    public List<Map<String, Object>> queryPurchaseByDay(StatisticsPurchaseDto dto) {
        return dao.selectPurchaseByDay(dto);
    }

    @Override
    public List<Map<String, Object>> queryPurchaseByMonth(StatisticsPurchaseDto dto) {
        return dao.selectPurchaseByMonth(dto);
    }

    @Override
    public List<Map<String, Object>> queryDriverPerformance(String beginSupplyDate, String endSupplyDate) {
        return dao.selectDriverPerformance(beginSupplyDate,endSupplyDate);
    }

    @Override
    public List<Map<String, Object>> queryMasterPerformance(String beginSupplyDate, String endSupplyDate) {
        return dao.selectMasterPerformance(beginSupplyDate,endSupplyDate);
    }

    @Override
    public List<Map<String, Object>> queryTeamPerformance(String beginSupplyDate, String endSupplyDate) {
        return dao.selectTeamPerformance(beginSupplyDate,endSupplyDate);
    }
}
